matrix inverse error vector matrix underflow vector matrix underflow vector matrix sizing vector memory error vector dimension overflow matrix stack underflow matrix stack overflow math initialization